package src.LLVM.control;

import src.LLVM.IR;

public class ReturnIR implements IR {
    private  String reg = "";
    public ReturnIR(){

    }
    public ReturnIR(String reg){
        this.reg = reg;
    }
    @Override
    public String toString() {
        if(reg.length() == 0){
            return "\t" + "ret " +"void";
        }else {
            return "\t" +"ret " + "i32 " + reg;
        }
    }
}
